export const modalConfig = {
  pageName: 'users',
  header: {
    isNewTitle: '新建用户',
    isEditTitle: '编辑用户'
  },
  formItems: [
    {
      type: 'input',
      prop: 'name',
      label: '用户名',
      placeholder: '请输入用户名',
      initialValue: ''
    },
    {
      type: 'input',
      prop: 'realname',
      label: '真实姓名',
      placeholder: '请输入真实姓名'
    },
    {
      type: 'input',
      prop: 'password',
      label: '登录密码',
      placeholder: '请输入密码'
    },
    {
      type: 'input',
      prop: 'cellphone',
      label: '手机号码',
      placeholder: '请输入查询的手机号码'
    },
    {
      type: 'select',
      prop: 'role',
      label: '选择角色',
      slotName: 'selectRole',
      options: [
        { label: '部门', value: 1 },
        { label: '领导', value: 2 }
      ]
    },
    {
      type: 'select',
      prop: 'department',
      label: '选择部门',
      slotName: 'selectDepartment',
      options: [
        { label: '研发部', value: 1 },
        { label: '总裁办', value: 2 }
      ]
    }
  ]
}
